﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xfs
{
    [XfsObjectSystem]
    public class XfsLocationComponentAwakeSystem : XfsAwakeSystem<XfsMailboxComponent>
    {
        public override void Awake(XfsMailboxComponent self)
        {
            if (self.GetParent<XfsEntity>()!=null)
            {

            }

        }
    }

    [XfsObjectSystem]
    public class XfsActorLocationComponentUpdateSystem : XfsUpdateSystem<XfsLocationComponent>
    {
        int time = 0;
        int restime = 4000;
        public override void Update(XfsLocationComponent self)
        {
            time += 1;
            if (time > restime)
            {
                time = 0;


               

            }
        }
    }



}
